Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@opentelemetry/resource-detector-alibaba-cloud
Advanced tools
OpenTelemetry resource detector for Alibaba Cloud
Resource detector for Alibaba Cloud.
The OpenTelemetry Resource is an immutable representation of the entity producing telemetry. For example, a process producing telemetry that is running in a container on Kubernetes has a Pod name, it is in a namespace and possibly is part of a Deployment which also has a name. All three of these attributes can be included in the Resource
.
This document defines standard attributes for resources.
Supports OpenTelemetry JS SDK 1.0
npm install --save @opentelemetry/resource-detector-alibaba-cloud
import { detectResources } from '@opentelemetry/resources';
import { alibabaCloudEcsDetector } from '@opentelemetry/resource-detector-alibaba-cloud'
const resource = await detectResources({
detectors: [alibabaCloudEcsDetector],
})
const tracerProvider = new NodeTracerProvider({ resource });
This package uses @opentelemetry/semantic-conventions
version 1.22+
, which implements Semantic Convention Version 1.7.0
Populates cloud
and host
for processes running on Alibaba Cloud ECS. More info about Alibaba Instance Identities can be found here.
Resource Attribute | Description |
---|---|
cloud.account.id | Value of owner-account-id on Alibaba Cloud |
cloud.availability_zone | Value of zone-id on Alibaba Cloud |
cloud.platform | In this context, it's always alibaba_cloud_ecs |
cloud.provider | In this context, it's always alibaba_cloud |
cloud.region | Value of region-id on Alibaba Cloud |
host.id | Value of instance-id on Alibaba Cloud |
host.name | The hostname for the app, retrieve from the hostname endpoint |
host.type | Value of instance-type on Alibaba Cloud |
FAQs
OpenTelemetry resource detector for Alibaba Cloud
We found that @opentelemetry/resource-detector-alibaba-cloud demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.